package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.search.query.SearchQueryObject;
import cn.wolfcode.luowowo.search.templates.StrategyTemplate;
import cn.wolfcode.luowowo.search.vo.StatisVO;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * 攻略服务
 */
public interface IStrategySearchService {
    void createIndex();
    void initData();

    void save(StrategyTemplate t);

    /**
     * 获取主题推荐攻略
     * @return
     */
    List<Map<String,Object>> queryThemeCommends();

    /**
     * 按照分组条件查询
     * @param conditionTypeUnAbroad
     * @return
     */
    List<StatisVO> queryStrategyCondition(int conditionTypeUnAbroad);

    Page<StrategyTemplate> query(SearchQueryObject qo);

    Page<StrategyTemplate> queryByDestId(SearchQueryObject qo);



}
